import request from '@/utils/request';
// list
export const yingshishipinList = (params) => {
  return request({
    url: '/admin/yingshishipin/page',
    method: 'post',
    data: params,
  })
};
export const yingshishipinDetail = (id) => {
  return request({
    url: '/admin/yingshishipin/' + id,
    method: 'get',
  })
};
// add
export const yingshishipinSave = (params) => {
  return request({
    url: '/admin/yingshishipin',
    method: 'post',
    data: params,
  })
};
// updt
export const yingshishipinEdit = (id, params) => {
  return request({
    url: '/admin/yingshishipin/' + id,
    method: 'PATCH',
    data: params,
  })
};
// delete
export const yingshishipinDelete = (id) => {
  return request({
    url: '/admin/yingshishipin/' + id,
    method: 'delete',
  })
};
// pldel
export const yingshishipinDeleteList = (yingshishipins) => {
  return request({
    url: '/admin/yingshishipin/deleteList',
    data: { list: yingshishipins },
    method: 'post',
  })
};
// all
export const yingshishipinAllList = () => {
  return request({
    url: '/admin/yingshishipin',
    method: 'get',
  })
};

export const yingshishipin_tj_leibie = () => { return request({ url: '/admin/yingshishipin/yingshishipin_tj_leibie', method: 'get', }) };
